{include file="news/header.tpl"}
{literal}
<script type="text/javascript">

function vaild(id,type){

$.post("/member/vaildface",{id:id,type:type},function(data){
alert(data.message);
	$("#"+id).remove();
},"json");
	
}
</script>
{/literal}
<!-- 头部// -->
<!-- 头部// -->
{include file="news/top.tpl"} {include file="news/nav.tpl"}
<!-- start: Content -->
<div id="content" class="span10">


<div class="row-fluid">


<div class="well"><!-- Default panel contents -->


<div class="box-content">

<table class="table table-striped  table-hover">
	<tr>
		<th>id</th>
		<th>用户名</th>
		<th>头像</th>
		<th>操作</th>
	</tr>

	{foreach from=$list item=l}

	<tr id="{$l.id}">
		<td>{$l.uid}</td>
		<td>{$l.username}</td>
		<td><img src="{$l.face}" width="60"></td>
		<td><input type=button name=copy class="btn btn-success"
			value="{$lang['PASS']}" onclick="vaild({$l.id},'pass');"> <input type=button
			name=copy class="btn btn-default" value="{$lang['REFUSE']}"
			onclick="vaild({$l.id},'refuse');"></td>
	</tr>
	{/foreach}

</table>

<div class="pagination pagination-centered">
<ul id="pager"></ul>
</div>

</div>




</div>


{literal} <script type='text/javascript'>
var options = {
currentPage: {/literal}{$num.current}{literal},
totalPages: {/literal}{$num.page}{literal},
numberOfPages:5,
bootstrapMajorVersion:3,
pageUrl: function(type, page, current){
    return '/member/listing/?groupid={/literal}{$groupid.id}&verify={$verify.id}&{literal}&p='+page;
}
}
$('#pager').bootstrapPaginator(options);
</script> {/literal} {include file="news/footer.tpl"}